cssimagefallback: Don't compute new image if only a color is set
authorTimm Bäder <mail@baedert.org>
Sat, 11 Jan 2020 07:25:52 +0000 (08:25 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 18 Jan 2020 07:49:51 +0000 (08:49 +0100)
commit3401150cca54b0cd1b9d9b745b1fe5f22d3b5c54
tree2dc30c62268efba44060483e8c48fc006631b7ec
parent67991ed0f405eca73e4c2f78f3e0d1c6c1a8de2c
cssimagefallback: Don't compute new image if only a color is set

Themes might use e.g. image(red), which is a constant value and will
never change. In that case, the fallback image has ->color set, but not
->images. If that's the case and the computed color is the same as
the one we already have, just return the already existing image.
gtk/gtkcssimagefallback.c